{% extends "base.html" %}
{% load i18n %}
{% load markup %}

{% block title %}{% trans "Company" %}{% endblock %}

{% block page-title %}
  {{ company.name }}
{% endblock %}

{% block navigation %}
  {% activetab "main" "company" %}
  {{ block.super }}
{% endblock %}

{% block sub-navigation %}
  <ul>
    <li><a href="{% url inhouse.views.phone_list %}">{% trans "Phone list" %}</a></li>
    <li><a href="/company/books">{% trans "Books" %}</a></li>
    <li><a href="/company/hardware">{% trans "Hardware" %}</a></li>
    <li><a href="/company/software">{% trans "Software" %}</a></li>
  </ul>
{% endblock %}

{% block content %}

  <div class="module">
	<h3 class="header">
	  {% trans 'Contact' %}
	</h3>
	<div class="body">
	  <div class="clearfix after">
	    <label for="id_first_name">{% trans "Address" %}:</label>
	    {{ company.address.get_addressstring|markdown }}
	  </div>
	</div>
  </div>

  <div class="module">
	<h3 class="header">
	  {% trans 'Communication' %}
	</h3>
	<div class="body">
		{% if company.communication %}
		  <div class="clearfix after">
			<label for="id_first_name">{% trans "Homepage" %}:</label>
			<p><a href="{{ company.communication.url }}" target="_blank">{{ company.communication.url }}</a></p>
		  </div>
		  <div class="clearfix after">
			<label for="id_first_name">{% trans "E-mail" %}:</label>
			<p><a href="mailto:{{ company.communication.email }}">{{ company.communication.email }}</a></p>
		  </div>
		  <div class="clearfix after">
			<label for="id_first_name">{% trans "Telephone" %}:</label>
			<p>{{ company.communication.phone_landline }}</p>
		  </div>
		  <div class="clearfix after">
			<label for="id_first_name">{% trans "Telephone (mobile)" %}:</label>
			<p>{{ company.communication.phone_mobile }}</p>
		  </div>
		  <div class="clearfix after">
			<label for="id_first_name">{% trans "Fax" %}:</label>
			<p>{{ company.communication.fax }}</p>
		  </div>
		{% endif %}
	</div>
  </div>

{% endblock %}
